
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace CRM.Models
{
    [Table("TradePartner")]
    [Comment("贸易伙伴")]
    public class TradePartner : BaseModel
    {
        /// <summary>
        /// 贸易伙伴编码
        /// </summary>       
        public int TradepartnerId { get; set; }

        /// <summary>
        /// 贸易伙伴名称
        /// </summary>
        public string Tradepartnername { get; set; }

        /// <summary>
        /// 数据来源
        /// </summary>
        [DefaultValue(1)]
        public int Datasources { get; set; }

        /// <summary>
        /// 新增时间
        /// </summary>
        public DateTime? Addtime { get; set; } = DateTime.Now;

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? Updatetime { get; set; }

        public List<TradeData> TradeDatas { get; set; }
    }
}